package com.yh.homestay.controller;

import com.yh.homestay.common.HomeStayResult;
import com.yh.homestay.service.HomeStayOrderService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.*;

import java.util.List;

/**
 * 商品管理
 */
@Controller
public class HomeStayOrderController {
    @Autowired
    private HomeStayOrderService homeStayOrderServicel;

    /**
     * 展示所有订单
     *
     * @param
     * @return
     */
    @RequestMapping("/order/show")
    @ResponseBody
    public HomeStayResult findCapitalItemAll(Integer page, Integer limit,Integer orderType,Integer orderPayType, Long orderId) {

        return homeStayOrderServicel.findAllOrder(page,limit,orderType,orderPayType,orderId);
    }

}
